package com.netcracker.util.dao;

import com.netcracker.db.exception.DBException;
import com.netcracker.db.DBManager;
import com.netcracker.entity.Publisher;
import com.netcracker.entity.record.PublisherRecord;

import java.util.List;

public interface PublisherDAO {
        
    public void setDBManager(DBManager dbManager);
    
    public void setDAOFacade(DAOFacade daoFacade);
    
    public void create(PublisherRecord publisher) throws DBException;

    public void edit(PublisherRecord publisher) throws DBException;

    public void remove(int publisherID) throws DBException;

    public Publisher find(int id) throws DBException;

    public List<Publisher> findAll() throws DBException;

    public int count() throws DBException; 
    
}
